package com.chinasofti.method2;

public class Student {

    private void show(){
        System.out.println("私有的show方法，无参无返回值");
    }

    public void function1(){
        System.out.println("public的function方法，无参无返回值");
    }

    public void function2(String name){
        System.out.println("public的function2方法，有参无返回值");
    }
    public String function3( ){
        System.out.println("public的function3方法，无参有返回值");
        return "aaa";
    }
    public String function4(String name ){
        System.out.println("public的function4方法，有参有返回值");
        return "aaa";
    }
}